package com.ymatou.iapi.trading.useranalysis.testcase;

import java.util.Date;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.experimental.categories.Category;

import com.ymatou.iapi.trading.useranalysis.parameter.BatchChangeBuyerOrderStatisticsReq;
import com.ymatou.iapi.trading.useranalysis.service.BatchChangeBuyerOrderStatisticsCall;
import com.ymt.core.tool.Logger;
import com.ymt.utils.annotation.TestCase;
import com.ymt.utils.annotation.TestSuite;
import com.ymt.utils.tag.P1;
/**
*批量处理(交易内部用)
*FreeMaker Template自动生成代码
*/
@TestSuite
public class Ts_BatchChangeBuyerOrderStatistics {
	private static BatchChangeBuyerOrderStatisticsReq req;
	private static BatchChangeBuyerOrderStatisticsCall call;
	@BeforeClass
	public static void setUp() {
		Logger.createResultFile("批量处理(交易内部用)");
	}

	@Before
	public void caseUp() {
		req = new BatchChangeBuyerOrderStatisticsReq();
		call = new BatchChangeBuyerOrderStatisticsCall();
	}

	@AfterClass
	public static void tearDown() {
		Logger.generateResult(call.getOpurl());
	}

	@After
	public void caseDown() {
		Logger.end();
	}

	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_BatchChangeBuyerOrderStatistics_001() {
		Logger.start(true, "");
		try {

			req.setBeginTime(new Date());
			req.setEndTime(new Date());
			req.setBusinessType(1);
			req.setType(1);
			req.setStartId(14856291);

			call.setData(req);
			call.callService();

		} catch (Exception e) {
			Logger.fail(e);
		}
	}

}